import time
import unittest
from Finance_fun.tool.HTMLTestReport import HTMLTestReport

suite = unittest.defaultTestLoader.discover('.','run.py')
#报告存放
report_dir = "../report/FunReport_{}.html".format(time.strftime("%Y_%m_%d %H_%M_%S"))

with open(report_dir,'wb') as f:
    HTMLTestReport(stream=f, title="金融借投自动化测试报告", description="功能测试", tester="wyy").run(suite)
